package observer.demo1;

import java.util.Observable;
import java.util.Observer;

/**
 * 观察者需要实现Observer
 *
 * @author 1
 * @version 1.0
 * @description: TODO
 * @date 2024-08-26 16:21
 */
public class WangSi implements Observer {
    public void update(Observable o, Object arg) {
        System.out.println("王斯: 我看到韩非子有动静,马上给老板汇报内容:");
        System.out.println(arg.toString());
        System.out.println("王斯: 我汇报完毕了");
    }
}
